package weibo4j.examples.user;

import weibo4j.Users;
import weibo4j.Weibo;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

public class ShowUser {

	public static void main(String[] args) {
		String access_token = "2.005hJakCss4NMEd42ef4bd6d1yLa4E";
		Weibo weibo = new Weibo();
		weibo.setToken(access_token);
//		String uid =  args[1];
		Users um = new Users();
		try {
			User user = um.showUserById("2520594214");
			//1304577530
			System.out.println("uid->"+user.getId());
			System.out.println("screenName->"+user.getScreenName());
			System.out.println("name->"+user.getName());
			System.out.println("decription->"+user.getDescription());
			System.out.println("url->"+user.getUrl());
			System.out.println("Imageurl->"+user.getProfileImageUrl());
			System.out.println("avatarLarge->"+user.getAvatarLarge());
			System.out.println("remark->"+user.getRemark());
			System.out.println("weihao->"+user.getWeihao());
			
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}

}
